package com.houtai.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel(value="培训信息", description="培训信息")
public class TdTrain {
    @ApiModelProperty(value="id", name="train_id")
    private int train_id;
    @ApiModelProperty(value="0有效1已删除", name="state")
    private int state;
    @NotEmpty(message = "请输入标题")
    @Length(max = 20, message = "标题最多20个字符")
    @ApiModelProperty(value="标题", name="train_title")
    private String train_title;
    @NotEmpty(message = "请输入副标题")
    @Length(max = 30, message = "副标题最多30个字符")
    @ApiModelProperty(value="副标题", name="train_subtitle")
    private String train_subtitle;
    @NotEmpty(message = "请上传图片")
    @ApiModelProperty(value="图片", name="train_img")
    private String train_img;
    @NotEmpty(message = "请输入标签")
    @Length(max = 10, message = "标签最多10个字符")
    @ApiModelProperty(value="标签", name="train_label")
    private String train_label;
    @NotEmpty(message = "请输入主办方介绍")
    @Length(max = 500, message = "主办方介绍最多500个字符")
    @ApiModelProperty(value="主办方介绍", name="sponsor_introduction")
    private String sponsor_introduction;

    @ApiModelProperty(value="活动内容", name="train_content")
    private String train_content;
    @NotNull(message = "排序不能为空")
    @ApiModelProperty(value="排序越大越靠前", name="sort")
    private int sort;
    @ApiModelProperty(value="栏目分类id", name="train_cate")
    private int train_cate;
    @ApiModelProperty(value="上课制度id", name="class_way")
    private int class_way;

    public int getTrain_id() {
        return train_id;
    }

    public void setTrain_id(int train_id) {
        this.train_id = train_id;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getTrain_title() {
        return train_title;
    }

    public void setTrain_title(String train_title) {
        this.train_title = train_title;
    }

    public String getTrain_subtitle() {
        return train_subtitle;
    }

    public void setTrain_subtitle(String train_subtitle) {
        this.train_subtitle = train_subtitle;
    }

    public String getTrain_img() {
        return train_img;
    }

    public void setTrain_img(String train_img) {
        this.train_img = train_img;
    }

    public String getTrain_label() {
        return train_label;
    }

    public void setTrain_label(String train_label) {
        this.train_label = train_label;
    }

    public String getSponsor_introduction() {
        return sponsor_introduction;
    }

    public void setSponsor_introduction(String sponsor_introduction) {
        this.sponsor_introduction = sponsor_introduction;
    }

    public String getTrain_content() {
        return train_content;
    }

    public void setTrain_content(String train_content) {
        this.train_content = train_content;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getTrain_cate() {
        return train_cate;
    }

    public void setTrain_cate(int train_cate) {
        this.train_cate = train_cate;
    }

    public int getClass_way() {
        return class_way;
    }

    public void setClass_way(int class_way) {
        this.class_way = class_way;
    }
}
